#include "editorlogic.h"

EditorLogic::EditorLogic()
{
}

void EditorLogic::setView(QWidget *widget) {
    window = widget;
    window->resize(WIN_X,WIN_Y);
    window->show();

}

void EditorLogic::save(QString name) {
    FileIO::getInstance()->saveFile(name.toStdString().c_str());
}

void EditorLogic::load(QString name) {
    FileIO::getInstance()->loadFile(name.toStdString().c_str());
}
